package club.banyuan;

public class Vehicle {

    private int year;               // 年份
    private String factory;         // 厂家信息
    private boolean isRent;         // 出租情况


    public Vehicle(int year, String factory, boolean isRent) {
        this.year = year;
        this.factory = factory;
        this.isRent = isRent;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public boolean isRent() {
        return isRent;
    }

    public void setRent(boolean rent) {
        isRent = rent;
    }
}
